package com.yvtian.inv.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yvtian.inv.pojo.InvSortEntity;
import com.yvtian.inv.dao.InvSortMapper;
import com.yvtian.inv.service.InvSortService;
import org.springframework.stereotype.Service;

/**
 * (inv_sort)表服务实现类
 *
 * @author long
 * @since 2024-04-25 09:47:55
 */
@Service("invSortService")
public class InvSortServiceImpl extends ServiceImpl<InvSortMapper, InvSortEntity> implements InvSortService {

    @Override
    public IPage<InvSortEntity> findByPage(Page<InvSortEntity> page, InvSortEntity invSortEntity) {
        LambdaQueryWrapper<InvSortEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(InvSortEntity::getIsDel, 0);
        return this.page(page, queryWrapper);
    }
}

